package org.hxyjs.service;

import org.hxyjs.dto.DTO;
import org.hxyjs.entity.Supplier;
import org.hxyjs.page.PageInfo;

public interface SupplierService {
    /**
     * 查询全部学生
     * @return
     */
    public DTO<Supplier> getAllSuppliers() throws Exception;
    /**
     *  查询学生带选课
     * @param suno
     * @return
     */

    public DTO<Supplier> deleteSupplierBySuno(String suno) throws Exception;
    /**
     *  删除学生
     * @param supplier
     * @return
     */
    public DTO<Supplier> updateSupplierBySuno(Supplier supplier)  throws Exception;
    /**
     *  增加学生
     * @param supplier
     * @return
     */
    public DTO<Supplier> addSupplier(Supplier supplier)  throws Exception;

    public DTO<Supplier> getSupplierBySuno(String suno)  throws Exception;

    public DTO<Supplier> getSupplierByPage(PageInfo pageInfo) throws Exception;

    public DTO<Supplier> selectSupplierWithorderAndUser(String suno) throws Exception;


}
